package com.hyb.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *  库存信息
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_stock")
@ApiModel("库存信息")
public class Stock implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "stock_id", type = IdType.AUTO)
    @ApiModelProperty("库存id")
    private Integer stockId;
    @ApiModelProperty("产品id")
    private Integer productId;
    @ApiModelProperty("仓库名")
    private String storeName;
    @ApiModelProperty("货位")
    private String cargoSpace;
    @ApiModelProperty("产品数量")
    private Integer cargoNum;
    @ApiModelProperty("备注")
    private String cargoRemarks;
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE,update = "now()")
    private LocalDateTime updateTime;
    @ApiModelProperty("修改次数")
    @Version
    private Integer version;

}
